package com.yiyuplatform.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.*;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @Description
 * @Author dalong
 * @Date 2021-11-08
 */

@Getter
@Setter
@ToString
@NoArgsConstructor
@EqualsAndHashCode
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
@Entity
@Table(name = "kno_t_info")
public class KnoTInfo implements Serializable {
    private static final long serialVersionUID = 2706822925320535833L;

    /**
     * 知识信息ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    @Column(name = "KNO_ID")
    private Long knoId;

    /**
     * 知识详情
     */
    @Column(name = "KNO_CONTENT")
    private String knoContent;

    /**
     * 知识原址
     */
    @Column(name = "KNO_SOURCE_URL")
    private String knoSourceUrl;

    /**
     * 知识标题
     */
    @Column(name = "KNO_TITLE")
    private String knoTitle;

    /**
     * 发表日期
     */
    @Column(name = "KNO_TIME")
    private Timestamp knoTime;

    /**
     * 阅读数目
     */
    @Column(name = "KNO_READ_NUM")
    private Long knoReadNum;

    /**
     * 点赞数目
     */
    @Column(name = "KNO_LIKE_NUM")
    private Long knoLikeNum;

}
